package com.tm.media.controller;

import com.tm.media.service.ChannelService;
import com.tm.media.utils.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Ly
 * @Data 2023/2/23 18:49
 * @ClassName ChannelController
 */
@RestController
@RequestMapping("api/v1/channel")
public class ChannelController {
    @Autowired
    private ChannelService channelService;
    @GetMapping("channels")
    public Result channels(){
        return channelService.channels();
    }
}
